import request from '@/utils/request'
// 获取订单分页数据(/company/omsorder/getOrderList)
export const getOrderList = (data) => request.post('/company/omsorder/getOrderList', data)

// 查询-班次信息（航班号、车次号）（/common/findTravelWayInfo）content-type:application/x-www-form-urlencoded
export const findTravelWayInfo = (data) => request.post('/common/findTravelWayInfo', data, {
    headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
    }
})
//获取客户列表分页下拉框/company/serviceCenter/findComboCusList
export const findComboCusList = (data) => request.post('/company/serviceCenter/findComboCusList', data, )
// 获取系统地点分页列表（/back/stationList/getStationListPages） 酒店查询
export const getStationListPages = (data) => request.post('/back/stationList/getStationListPages', data)

// 添加订单(/company/omsorder/add)
export const add = (data) => request.post('/company/omsorder/addOrderByTeam', data)

// 订单编辑按钮(/company/omsorder/edit)
export const edit = (data) => request.post('/company/omsorder/editOrder', data)

// 批量删除(/company/omsorder/delete)
export const omsorderdelete = (data) => request.post('/company/omsorder/deleteOrder', data)

// 获取订单详情(/company/omsorder/getOrderInfo)
export const getOrderInfo = (data) => request.post('/company/omsorder/getOrderInfo', data)





// 订单导出(/company/omsorder/export)
export const omsorderexport = (data) => request.post('/company/omsorder/export', data)



// 添加/修改-用户个性设置数据API（post）/company/privateSet/adupPrivateSet
export const adupPrivateSet = (data) => request.post('/company/privateSet/adupPrivateSet', data)

// 获取-用户个性设置数据列表API（post）/company/privateSet/getPrivateSetList
export const getPrivateSetList = (data) => request.post('/company/privateSet/getPrivateSetList', data)

//订单付款申请列表
export const orderPayApplyPageList = (data) => request.post('/travel/finance/orderPayApplyPageList', data)

//选中单条付款申请记录用微信扫码支付
export const payApplyOrderByWX = (data) => request.post('/travel/finance/payApplyOrderByWX', data)

//PC微信扫码支付
export const wxPayByPc = (data) => request.post('/travel/finance/wxPayByPc', data)

//获取系统站点下拉框（/common/findStationCombo）
export const findStationCombo = (data) => request.post('/common/findStationCombo', data)

//获取位置类型（/back/stationList/getStationType）
export const getStationType = (data) => request.post('/back/stationList/getStationType', data)

//根据坐标解析地址（/common/findAddressByLocation）content-type:application/x-www-form-urlencoded
export const findAddressByLocation = (data) => request.post('/common/findAddressByLocation', data, {
    headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
    }
})

//获取-地图地点列表（/common/findMapPointList）content-type:application/x-www-form-urlencoded
export const findMapPointList = (data) => request.post('/common/findMapPointList', data, {
    headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
    }
})

//计算价格
export const getPrice = (data) => request.post('/company/omsorder/getPrice', data)

//抢单大厅(/company/omsorder/getOrderReadyList)
export const getOrderReadyList = (data) => request.post('/company/omsorder/getOrderReadyList', data)

// 抢单确认(/company/omsorder/confirmGrabOrder)
export const confirmGrabOrder = (data) => request.post('/company/omsorder/confirmGrabOrder', data)

// 获取订单可用优惠券编号数组和不可用编号数组(/common/routeDiscount/findUseCouponListByOrder)
export const findUseCouponListByOrder = (data) => request.post('/common/routeDiscount/findUseCouponListByOrder', data)

// 免密支付（仅针对余额支付）（/mobile/customers/cashPayIsNeedPass）
export const cashPayIsNeedPass = (data) => request.post('/mobile/customers/cashPayIsNeedPass', data)

// 获取我的钱包（/common/wallet/findMyWallet）
export const findMyWallet = (data) => request.post('/common/wallet/findMyWallet', data)

// PC端微信充值生成二维码（/common/apiPay/wxPayRechargeByQrCode）content-type:application/x-www-form-urlencoded
export const wxPayRechargeByQrCode = (data) => request.post('/common/apiPay/wxPayRechargeByQrCode', data)

//PC端用车订单微信支付生成二维码
export const wxPayOmsOrdersByQrCode = (data) => request.post('/common/apiPay/wxPayOmsOrdersByQrCode', data)

//免密支付（仅针对余额支付）（/mobile/customers/getCashPayIsNeddPass）
export const getCashPayIsNeddPass = (data) => request.post('/common/customers/getCashPayIsNeddPass', data)

//查询微信订单支付状态
export const queryWXPayOrder = (data) => request.post('/common/apiPay/queryWXPayOrder', data)

//余额支付行程订单（/common/wallet/payOmsOrders）
export const payOmsOrders = (data) => request.post('/common/wallet/payOmsOrders', data)

//处理异常报备
export const disposeAccident = (data) => request.post('/company/omsorder/disposeAccident', data)





//订单跟进(/company/omsorder/getOrderProcessList)
export const getOrderProcessList = (data) => request.post('/company/omsorder/getOrderProcessList', data)

//收款列表(/company/omsorder/receiveOrderProcessList)
export const gathOrderProcessList = (data) => request.post('/company/financeCenter/gathOrderProcessList', data)

//收外调款(/company/omsorder/receiveOrderProcessList)
export const gathExternalList = (data) => request.post('/company/financeCenter/gathExternalList', data)

//付款列表(/company/omsorder/payOrderProcessList)
export const payOrderProcessList = (data) => request.post('/company/financeCenter/payOrderProcessList', data)




// 获取业务员列表/company/staffCenter/getServiceMans
export const getServiceMans = (data) => request.post('/company/staffCenter/getServiceMans', data)

// 获取驾驶员下拉框/company/staffCenter/getDriverList
export const getDriverList = (data) => request.post('/company/staffCenter/getDriverCombo', data)

// 取消派车按钮(/company/omsorder/cancelDispatchCar)
export const cancelDispatchCar = (data) => request.post('/company/omsorder/cancelDispatchCar', data)

// 订单跟进合并订单(/company/omsorder/mergeProcess)
export const mergeProcess = (data) => request.post('/company/omsorder/mergeProcess', data)

//取消合并(/company/omsorder/cancelMergeProcess)
export const cancelMergeProcess = (data) => request.post('/company/omsorder/cancelMergeProcess', data)





// 代收设置(/company/omsorder/setHelpGathUrl)
export const setHelpGathUrl = (data) => request.post('/company/omsorder/setHelpGathUrl', data)

// 滴滴打车订单设置
export const isUseDidi = (data) => request.post('/company/omsorder/isUseDidi', data)

//获取车牌号下拉框(/company/safetyCenter/findCarCombo)
export const findCarCombo = (data) => request.post('/company/safetyCenter/findCarCombo', data)

//派车筛选车辆(/company/omsorder/filterCar)
export const filterCar = (data) => request.post('/company/omsorder/filterCar', data)

//派车筛选车辆(/company/omsorder/filterCar)
export const filterCar2 = (data) => request.post('/company/omsorder/filterCar2', data)

//线下派车按钮(/company/omsorder/offlineDispatchCar)
export const offlineDispatchCar = (data) => request.post('/company/omsorder/offlineDispatchCar', data)

//取消付款
export const cancelPay = (data) => request.post('/useCar/omsorder/cancelPay', data)


//单位派车按钮弹窗(/company/omsorder/dispatchCarPop)
export const dispatchCarPop = (data) => request.post('/company/omsorder/dispatchCarPop', data)

//派车筛选订单(/company/omsorder/filterOrder)
export const filterOrder = (data) => request.post('/company/omsorder/filterOrder', data)

//获取-银行日记账列表-分页/company/financeCenter/findBankTradeList
export const findBankTradeList = (data) => request.post('/company/financeCenter/findBankTradeList', data)
//获取金额类型下拉框（/company/sysManage/findMtypeCombo）
export const findMtypeCombo = (data) => request.post('/company/sysManage/findMtypeCombo', data)

//单位业务收款（多条收款必须是同一客户）/company/financeCenter/serviceGath
export const serviceGath = (data) => request.post('/company/financeCenter/serviceGath', data)
// 撤销收款/company/financeCenter/cancelServiceGath
export const cancelServiceGath = (data) => request.post('/company/financeCenter/cancelServiceGath', data)
//获取交易记录分页数据（/company/trade/getWalletListForCompany）
export const getWalletListForCompany = (data) => request.post('/company/trade/getWalletListForCompany', data)

//业务付款申请（/company/financeCenter/servicePay）
export const servicePay = (data) => request.post('/company/financeCenter/servicePay', data)

//撤销业务付款申请（/company/financeCenter/cancelServicePay）
export const cancelServicePay = (data) => request.post('/company/financeCenter/cancelServicePay', data)

//获取-所有客户的操作员(业务负责人)/company/serviceCenter/getAllDutyOfCustom
export const getAllDutyOfCustom = (data) => request.post('/company/serviceCenter/getAllDutyOfCustom', data)

//取消拼车合并(/company/omsorder/cancelMerge)
export const cancelMerge = (data) => request.post('/company/omsorder/cancelMerge', data)


// 拼车合并(/company/omsorder/merge)
export const merge = (data) => request.post('/company/omsorder/merge', data)


// 预派车（/company/omsorder/confirmSendOrder）
export const confirmSendOrder = (data) => request.post('/company/omsorder/confirmSendOrder', data)

// 经理确认派单/company/omsorder/JLConfirmSend
export const JLConfirmSend = (data) => request.post('/company/omsorder/JLConfirmSend', data)

//派车订单更换车辆之前获取可选择的车辆列表(/company/safetyCenter/findCanUseCar)
export const findCanUseCar = (data) => request.post('/company/safetyCenter/findCanUseCar', data)


//派车订单更换驾驶员之前获取可选择的驾驶员列表(/company/driver/findCanUseDriver)
export const findCanUseDriver = (data) => request.post('/company/driver/findCanUseDriver', data)

//线上派车订单更换驾驶员(/company/omsorder/changeDriver)
export const changeDriver = (data) => request.post('/company/omsorder/changeDriver', data)

//线上派车订单更换车辆(/company/omsorder/changeCar)
export const changeCar = (data) => request.post('/company/omsorder/changeCar', data)

//线下派车更新【车辆，师傅】信息（post）/company/order/changeUnder
export const changeUnder = (data) => request.post('/company/omsorder/changeUnder', data)

//PC获取拼车订单-未接列表(/company/omsorder/getOrderListByReceiveAriport)
export const getOrderListByReceiveAriport = (data) => request.post('/company/omsorder/getOrderListByReceiveAriport', data)

//拼车列表PC已接到按钮(/company/omsorder/received)
export const received = (data) => request.post('/company/omsorder/received', data)

//PC查询拼车按钮-已接未派(/company/omsorder/queryReceivedNoCar)
export const queryReceivedNoCar = (data) => request.post('/company/omsorder/queryReceivedNoCar', data)


// PC拼车预派车辆&合并拼车订单&立即派车(/company/omsorder/mergeAndSendCar)
export const mergeAndSendCar = (data) => request.post('/company/omsorder/mergeAndSendCar', data)

// 获取拼车可合并订单列表(/company/omsorder/mergeQuery)
export const mergeQuery = (data) => request.post('/company/omsorder/mergeQuery', data)

// PC查询拼车-已派(/company/omsorder/queryReceivedAndCar)
export const queryReceivedAndCar = (data) => request.post('/company/omsorder/queryReceivedAndCar', data)

// 获取订单分页数据(/useCar/omsorder/getOrderList)
export const useCargetOrderList = (data) => request.post('/useCar/omsorder/getOrderList', data)


// 用车方添加订单(/useCar/omsorder/addOrder)
export const useCaraddOrder = (data) => request.post('/useCar/omsorder/addOrderByUseCar', data)

// 取消下单按钮(/useCar/omsorder/cancelOrder)
export const cancelOrder = (data) => request.post('/useCar/omsorder/cancelOrder', data)


// 取消付款
export const useCarcancelPay = (data) => request.post('/useCar/omsorder/cancelPay', data)

// 用车方确认/取消确认车价
export const confirmOrderPrice = (data) => request.post('/useCar/omsorder/confirmOrderPrice', data)


// 批量删除(/useCar/omsorder/deleteOrder)
export const deleteOrder = (data) => request.post('/useCar/omsorder/deleteOrder', data)

// 线下订单确认完团(/mobile/driver/omsorder/finishUnderOrder)
export const finishUnderOrder = (data) => request.post('/company/omsorder/finishUnderOrder', data)

// 获取高速费(/common/getTolls)
export const getTolls = (data) => request.post('/common/getTolls', data)

// 获取车辆配置（/common/getCarConfigurationType）content-type:application/x-www-form-urlencoded
export const getCarConfigurationType = (data) => request.post('/common/getCarConfigurationType', data)

// 取消订单收款锁定(/company/order/cancelGathLock)
export const cancelGathLock = (data) => request.post('/company/omsorder/cancelGathLock', data)

//PC获取拼车订单列表(/company/omsorder/getOrderGroupCarList)
export const getOrderGroupCarList = (data) => request.post('/company/omsorder/getOrderGroupCarList', data)


//订单发布(/company/omsorder/release)
export const release = (data) => request.post('/company/omsorder/release', data)

//拼车列表订单取消发布(/company/omsorder/cancelRelease)
export const cancelRelease = (data) => request.post('/company/omsorder/cancelRelease', data)


// 拼车送天府获取拼车可合并订单列表(/company/omsorder/mergeQuerySend)
export const mergeQuerySend = (data) => request.post('/company/omsorder/mergeQuerySend', data)

// 拼车订单合并确认(稍后派车)(/company/omsorder/merge)
// export const merge = (data) => request.post('/company/omsorder/merge', data)

// 根据用户userId获取当前用户所在的单位客户列表（/mobile/company/getCompanyByUserId）
export const getCompanyByUserId = (data) => request.post('/mobile/company/getCompanyByUserId', data)

// /company/omsorder/adupRewardPunish添加/修改奖惩记录
export const adupRewardPunish = (data) => request.post('/company/omsorder/adupRewardPunish', data)

// /company/omsorder/getRewardPunishById根据id获取奖惩记录详情
export const getRewardPunishById = (data) => request.post('/company/omsorder/getRewardPunishById', data)

// 删除奖惩记录
export const delRewardPunish = (data) => request.post('/company/omsorder/delRewardPunish', data)

// 代收设置(/useCar/omsorder/setHelpGathUrl)
export const useCarsetHelpGathUrl = (data) => request.post('/useCar/omsorder/setHelpGathUrl', data)

// 修改订单（/useCar/omsorder/modifyOrder）
export const modifyOrder = (data) => request.post('/useCar/omsorder/modifyOrder', data)

// 
export const findOrderScheduleByOrderNum = (data) => request.post('/company/omsorder/findOrderScheduleByOrderNum', data)

// 修改订单（/useCar/omsorder/modifyOrder）
export const getPayWay = (data) => request.post('/company/financeCenter/getPayWay', data)

// 处理异常报备(/useCar/omsorder/disposeAccident)
export const useCardisposeAccident = (data) => request.post('/useCar/omsorder/disposeAccident', data)

//获取旅游包车咨询回访记录分页数据（/back/travelAdviceFollow/findTravelAdviceFollowList）
export const findTravelAdviceFollowList = (data) => request.post('/company/serviceCenter/findTravelAdviceFollowList', data)




//回访旅游包车咨询记录（/back/travelAdviceFollow/followUpTravelAdviceByBack）
export const followUpTravelAdviceByTeam = (data) => request.post('/company/serviceCenter/followUpTravelAdviceByTeam', data)

//非包车订单确认/拒绝接单(/company/omsorder/receiveOrRefuse)
export const receiveOrRefuse = (data) => request.post('/company/omsorder/receiveOrRefuse', data)

//获取-托管给我车队下拉框搜索/company/serviceCenter/findTrusteeshipMeCombo
export const findTrusteeshipMeCombo = (data) => request.post('/company/serviceCenter/findTrusteeshipMeCombo', data)

//撤销收外调款/company/financeCenter/cancelExternalGath
export const cancelExternalGath = (data) => request.post('/company/financeCenter/cancelExternalGath', data)

//单位收外调款（多条收款必须是同一客户）/company/financeCenter/externalGath
export const externalGath = (data) => request.post('/company/financeCenter/externalGath', data)
